﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TSharp.Core.AppBox.Areas.Admin.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        创建新帐户</h2>
    <p>
        使用以下表单创建新帐户。
    </p>
    <p>
        密码的长度至少为
        <%= ViewData["PasswordLength"] %>
        个字符。
    </p>
    <% using (Html.BeginForm())
       { %>
    <%= Html.ValidationSummary(true, "帐户创建不成功。请更正错误并重试。") %>
    <div>
        <fieldset>
            <legend>帐户信息</legend>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.UserName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.UserName) %>
                <%= Html.ValidationMessageFor(m => m.UserName) %>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Email) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Email) %>
                <%= Html.ValidationMessageFor(m => m.Email) %>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Password) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(m => m.Password) %>
                <%= Html.ValidationMessageFor(m => m.Password) %>
            </div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.ConfirmPassword) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </div>
            <%=Html.Hidden("isbatch", 0)%>
            <p>
                <input type="submit" value="注册" onclick="$('#isbatch').val('0')" />
                <input type="submit" value="批量生产" onclick="$('#isbatch').val('1')" />
                
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
